home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dcc / defs.h < prev    next >
C/C++ Source or Header  |  1997-09-09  |  2KB  |  88 lines

  1.  
  2. /*
  3.  *  DCC/DEFS.H
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #ifdef AMIGA
  11.  
  12. #define DLIBPRE ""
  13. #define DLIBPOS "dlib:"
  14.  
  15. #include <exec/types.h>
  16. #include <exec/nodes.h>
  17. #include <exec/lists.h>
  18. #include <exec/libraries.h>
  19. #include <libraries/dos.h>
  20. #include <libraries/dosextens.h>
  21. #include <lib/misc.h>
  22. #include <lib/unix.h>
  23.  
  24. #ifndef INCLUDE_VERSION     /*  2.0 compilation compat check */
  25. #define INCLUDE_VERSION     0
  26. #else
  27. #include <clib/exec_protos.h>
  28. #include <clib/dos_protos.h>
  29. #include <clib/alib_protos.h>
  30. #endif
  31.  
  32. #else
  33.  
  34. #define DLIBPRE "/home/dice/"
  35. #define DLIBPOS "dlib/"
  36.  
  37. #include <suplib/lists.h>
  38. #include <suplib/string.h>
  39. #include <suplib/stdlib.h>
  40. #include <suplib/memory.h>
  41. #include <sys/types.h>
  42. #include <sys/stat.h>
  43. #include <sys/wait.h>
  44. #include <unistd.h>
  45.  
  46. #define __aligned
  47.  
  48. #endif
  49.  
  50. #ifdef DEBUG
  51. #define dbprintf(x) if (DDebug) printf x
  52. #else
  53. #define dbprintf(x)
  54. #endif
  55.  
  56. #include <stdio.h>
  57. #include <stdlib.h>
  58. #include <stdarg.h>
  59. #include <fcntl.h>
  60. #include <sys/file.h>
  61. #include <string.h>
  62. #include <errno.h>
  63. #include <lib/version.h>    /* DICE specific include */
  64.  
  65. #define Prototype   extern
  66. #define Local
  67.  
  68. #define BTOC(bptr,ctype)    ((ctype *)((long)bptr << 2))
  69. #define CTOB(ptr)           ((long)(ptr) >> 2)
  70.  
  71. typedef unsigned char    ubyte;
  72. typedef unsigned short    uword;
  73. #ifndef linux
  74. typedef unsigned long    ulong;
  75. #endif
  76. typedef struct CommandLineInterface    CLI;
  77. typedef struct Process         Process;
  78. typedef struct List         List;
  79. typedef struct FileInfoBlock FIB;
  80. typedef struct Node         Node;
  81.  
  82. #define DICE_C        0
  83. #define LATTICE_C   1
  84. #define AZTEC_C     2
  85.  
  86. #include "DCC-protos.h"
  87.  
  88.